﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace XqWebSite
{
    public partial class WebForm38 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)//判断是否回发
            {

            }
        }

        protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
        {

        }

        protected void But_tj_Click(object sender, EventArgs e)
        {
            string SQL = "";
            bool iRet = false;
            string id = Tex_wxid.Text;
            //string id = Request["ID"].ToString();
            SQL = "update WeiXiuDan set WeiXiuXinxi ='" + Tex_wxxx.Text + "',WeixiuShijan ='" + Tex_wxsj.Text + "',WeiXiuJieGuo='" + Tex_wxjg.Text
                  + "' where ID='" + id + "'";//执行更新操作
            iRet = DBHelper.ExecSql(SQL);


            if (iRet)
            {
                DBHelper.ShowMessage(Page, "恭喜您，操作成功！", "");
                Tex_wxxx.Text = "";
                Tex_wxsj.Text = "";
                Tex_wxjg.Text = "";
                
            }
            else
            {
                DBHelper.ShowMessage(Page, "对不起，操作失败！", "");
            }
            
        }

        protected void But_qx_Click(object sender, EventArgs e)
        {
            Tex_wxxx.Text = "";
            Tex_wxsj.Text = "";
            Tex_wxjg.Text = "";
            Tex_wxid.Text = "";
            Response.Redirect("BaoxiufankuiGl.aspx");
        }
    }
}